package io.gitee.chearnee.fw.openapi.business.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.gitee.chearnee.fw.openapi.constant.enums.CommonStatusEnum;
import io.gitee.chearnee.fw.web.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * @TableName application
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value = "application")
@Data
public class Application extends BaseEntity {

  /**
   * 公司id
   */
  private Long companyId;

  /**
   * 应用appid
   */
  private String appId;

  /**
   * 应用appkey
   */
  private String appKey;

  /**
   * 应用访问token
   */
  private String accessToken;

  /**
   * token过期时间
   */
  private LocalDateTime expiresTime;

  /**
   * 应用状态,0默认,1.有效，2封禁
   */
  private CommonStatusEnum status;

  /**
   * 创建人
   */
  private String creator;

  /**
   * 修改时间
   */
  private LocalDateTime updateAt;

  /**
   * 更新人
   */
  private String updateBy;


}